package com.housekeeping.housekeeping.user.dao;

import com.housekeeping.housekeeping.user.entity.Account;
import com.housekeeping.housekeeping.user.entity.AccountVo;

import java.sql.SQLException;

/**
 * @author tomyeung-李尐达
 */
public interface UserDao {
    int accountExist(String account) throws SQLException;

    /**
     * 用户注册
     * @param account  账号实体
     * @param sale     盐值
     * @return
     * @throws SQLException
     */
    int register(Account account,String sale) throws SQLException;

    AccountVo login(String account, String password) throws SQLException;
}
